package com.tyrone.captcha.entity.constant;

/**
 * @author xieyl
 * @create 2021/11/8 16:43
 */

public enum ResponseCode {

    SUCCESS(200, "successs"),

    FAILURE(404,"failure"),

    REQUEST_PARAM_INVALID(400001,"请求参数异常"),

    FREQUENT_REQUEST(1000,"请求频繁");

    private Integer code;
    private String msg;

    ResponseCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
